package com.liangzai.proxy.service;

/**
 * @author leiliang
 * @version 1.0
 * @Description  静态代理  需要编写动态代理类
 * @date 2021/3/15 17:57
 */
public class OrderServiceProxy implements OrderService {

    /**
     * 代理对象
     */
    private OrderService proxiedOrderService;

    public OrderServiceProxy(OrderService orderService) {
        this.proxiedOrderService = orderService;
    }

    @Override
    public void order() {
        System.out.println("日志收集开始..");
        proxiedOrderService.order();
        System.out.println("日志收集结束..");
    }


}
